import request from '@/router/axios';

export const getUsualList = (current, size) => {
  return request({
    url: '/api/xmbz-log/usual/list',
    method: 'get',
    params: {
      current,
      size
    }
  })
}

export const getApiList = (current, size) => {
  return request({
    url: '/api/xmbz-log/api/list',
    method: 'get',
    params: {
      current,
      size
    }
  })
}

export const getErrorList = (current, size) => {
  return request({
    url: '/api/xmbz-log/error/list',
    method: 'get',
    params: {
      current,
      size
    }
  })
}


export const getUsualLogs = (id) => {
  return request({
    url: '/api/xmbz-log/usual/detail',
    method: 'get',
    params: {
      id,
    }
  })
}
export const getApiLogs = (id) => {
  return request({
    url: '/api/xmbz-log/api/detail',
    method: 'get',
    params: {
      id,
    }
  })
}
export const getErrorLogs = (id) => {
  return request({
    url: '/api/xmbz-log/error/detail',
    method: 'get',
    params: {
      id,
    }
  })
}
export const getLoglist = (query) => {
  return request({
    url: '/api/xmbz-system/userOperationLog/getUserOperationLogPage',
    // url: 'http://192.168.2.106:8107/warehouse/getWarehousePage',
    method: 'get',
    params: query
  })
}

export const operationmodular = (query) => { //操作模块
  return request({
    url: '/api/xmbz-system/dict/dictionary?code=operation_modular',
    method: 'get',
    params: query
  })
}

export const operationtype = (query) => { //操作类型
  return request({
    url: '/api/xmbz-system/dict/dictionary?code=operation_type',
    method: 'get',
    params: query
  })
}
export const exportSystemLog = (query) => { //系统日志
  return request({
    url: '/api/xmbz-system/userOperationLog/exportSystemLog',
    method: 'get',
    params: query
  })
}
